package com.sifang.dao;

import com.sifang.domain.Driver;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DriverDao {

    //驾驶员详情
    @Select("select * from driver where id = #{id}")
    Driver detail(Integer id);

    //驾驶员分页显示
    List<Driver> list();
}
